{% extends "popboard/base_forum.html" %}

{% block extra_head %}
    {{ block.super }}
{% endblock %}


{% block popboard_top %}
<h1>Recent Posts</h1>
<p class="subtitle">
  <a href=""><img width="14" height="14" src="{{ MEDIA_URL }}{{ POPBOARD_MEDIA_PREFIX }}images/feed-icon.png" alt="Subscribe to Recent Posts"/></a>
  {{ post_code }} post(s) found
</p>
{% endblock %}

{% block popboard_main %}
<table cellspacing="0" cellpadding="0" border="0" class="posts wide">
<tbody>
{% if page_obj.object_list %}

        {% for post in page_obj.object_list %}
            {% include "popboard/includes/recent_post.html" %}
        {% endfor %}
    {% include "popboard/includes/pagination.html" %}
{% else %}
<tr>
    <td colspan="4">No posts are available.</td>
</tr>
{% endif %}
    </tbody></table>
{% endblock %}

{% block sidebar %}
<h5>Recently Posted</h5>

  {{ block.super }}

{% endblock %}